package com.me.TextMissed_a1;

import java.sql.Array;
import java.util.ArrayList;
import java.util.List;

import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.util.Log;

public class AppWidgetConfigure extends Activity {

	static final String TAG = "AppWidgetConfigure";
	private static final String PREFS_NAME  = "TextMissed_a1";

	 

    // Read the prefix from the SharedPreferences object for this widget.
    // If there is no preference saved, get the default from a resource
    static String loadTitlePref(Context context, int appWidgetId) {
        SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0);        
        Log.d("_TextMissed_a1_", "AppWidgetConfigure locale_pref: "+prefs.getString("locale_pref",null));
        return prefs.getString("locale_pref",null);        
    }
    
    static Boolean loadNoneAlternative (Context context, int appWidgetId){
    	SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0);        
        return prefs.getBoolean("noneAlternative",false);
    }
    
    static String[] getParameters(Context context, int appWidgetId) {
    	String parameters[] = null; // = {"Larry", "Moe", "Curly"}; 
    	//test1[] ="0";
    	SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0);
    	Boolean noneAlternative = prefs.getBoolean("noneAlternative",false);
    	parameters[0] = noneAlternative.toString(); 
    	parameters[2] = prefs.getString("locale_pref",null);
        Log.d("_TextMissed_a1_", "AppWidgetConfigure locale_pref: "+prefs.getString("locale_pref",null));
    	return parameters;
    }



}
